<?php
require "admin/config/mysql.php";

 class messageAdd extends mysqlPdo
 {
   public static function addmessage($username,$id,$time,$message,$title,$flag)
    { 
     $pdo = parent::getPdoConnect();
     $str = $pdo -> exec("insert into message (username,kid,time,message,title,flag) values('$username',$id,$time,'$message','$title',$flag)");
      return $str;

    }


 }

?>